<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="h" uri="/syzg-html"%>
<!DOCTYPE html>
<html>
<body>
	<h:table value="lstNewsinfo" cssClass="table table-bordered table-hover table-striped" cssStyle="margin-bottom:-5px;">
		<%-- <h:column headerTitle="选择" align="center" width="50" cssDStyle="padding:4px;">
			<input type="checkbox" name="selectedNewsRow" value="${o.id }" onclick=""/>
			<input type="hidden" name="selectedNewsId" value="${o.id }" />
		</h:column> --%>
	    <h:column headerTitle="新闻标题" width="250" cssHStyle="font-size:12px;" cssDStyle="font-size:12px;padding:4px;">
	    	<input type="hidden" name="selectedNewsId" value="${o.id }" />
	    	<a href="javascript:openNewsDetail('${o.id}');">${o.title}</a>
	    </h:column>
	    <h:column headerTitle="所属栏目" cssHStyle="font-size:12px;" cssDStyle="font-size:12px;padding:4px;">
	        ${o.newsColumns.name}
	    </h:column>
	    <h:column headerTitle="创建时间" width="130" cssHStyle="font-size:12px;" cssDStyle="font-size:12px;padding:4px;">
	        <fmt:formatDate value="${o.createTime}" pattern="yyyy-MM-dd HH:mm"/> 
	    </h:column>
	    <h:column headerTitle="状态" width="130" cssHStyle="font-size:12px;" cssDStyle="font-size:12px;padding:4px;">
	        <c:if test="${o.snId ne null}">
	        	原有数据
	        </c:if>
	        <c:if test="${o.snId eq null}">
	        	已选择，未保存
	        </c:if>
	    </h:column>
	    <h:column headerTitle="操作" align="center" width="100" cssDStyle="padding:4px;">
			<button type="button" class="btn btn-primary" onclick="deleteSpecialNewsById('${o.id}','${o.snId ne null}')">删除</button>
		</h:column>
	</h:table>
	<div id="myNewsDlg"></div>
</body>
</html>

